import 'package:flutter/material.dart';
import 'package:getx_scaffold/getx_scaffold.dart';
import 'package:oramemo/common/langs/text_key.dart';
import 'package:oramemo/generated/assets.dart';

class FileActionButtons extends StatelessWidget {
  const FileActionButtons(
      {super.key, required this.onEdit, required this.onDelete});

  final Function() onEdit;
  final Function() onDelete;

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        InkWell(
          child: Padding(
            padding: const EdgeInsets.all(9.0),
            child: const IconX.image(
              Assets.transcriptionUpdateFlie,
              size: 21,
            ),
          ),
          onTap: onEdit,
        ),
        InkWell(
          child: Padding(
            padding: const EdgeInsets.all(9.0),
            child: const IconX.image(
              Assets.transcriptionDelFlie,
              size: 21,
            ),
          ),
          onTap: onDelete,
        ),
      ],
    );
  }
}
